import request from '@/utils/request'

// 查询库存台账列表
export function listBizProductInventoryBook (query) {
  return request({
    url: '/biz/bizProductInventoryBook/list',
    method: 'get',
    params: query
  })
}

// 查询库存台账详细
export function getBizProductInventoryBook (id) {
  return request({
    url: '/biz/bizProductInventoryBook/' + id,
    method: 'get'
  })
}

// 新增库存台账
export function addBizProductInventoryBook (data) {
  return request({
    url: '/biz/bizProductInventoryBook',
    method: 'post',
    data: data
  })
}

// 修改库存台账
export function updateBizProductInventoryBook (data) {
  return request({
    url: '/biz/bizProductInventoryBook',
    method: 'put',
    data: data
  })
}

// 删除库存台账
export function delBizProductInventoryBook (id) {
  return request({
    url: '/biz/bizProductInventoryBook/' + id,
    method: 'delete'
  })
}


// 导出库存台账
export function exportBizProductInventoryBook (query) {
  return request({
    url: '/biz/bizProductInventoryBook/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/biz/bizProductInventoryBook/getInitData/' + dictTypes,
    method: 'get'
  })
}
